#!/usr/bin/perl
print "Enter string\n";
while (<>) {
chomp;
  if (/.*a\b/) {
  print "word contain a is $_\n";
  last;
  } else {
    print "No match |$_|\n";
    }
}
